package com.qf.service;

import com.qf.pojo.User;

import java.util.List;

public interface UserService {

    public List<User> findall();

    /**
     * 检测用户名是否存在
     * @param username
     * @return
     */
    User findByUsername(String username);

    boolean register(User user);

    User findByUserAndPwd(String username, String password);

    User findByEmail(String email);
}
